<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<style>
.panel-default {
    border-color: #cccccc;
}
.exportScenecaseTips{
 font-size:10px;
 color:#2b2727;
}
.exportScenecaseTitle{
 width:100%;
 color:#777;
 border-bottom:1px dashed #4845458f;
 padding-bottom:10px
}
.btnSceneTools{
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.btnSceneTools .btn, .btnSceneTools .btn:hover {
    border: 1px solid #1E7CFB;
    color: #1E7CFB;
}
</style>
<!-- 新增/修改单井模态窗开始 -->
<div id="addTestSceneWin">
	<table class="form-table" style="width:100%">
		<form id="addTestSceneForm" method="post">
			<tr class="hidden">
			  <td>
			    <input  class="exui-textbox" name="dto.apiTestScene.taskId" id="taskId"/>
			    <input class="exui-textbox"  name="dto.apiTestScene.sceneId" id="sceneId"/>
			    <input class="exui-textbox"  name="dto.apiTestScene.creatorId" id="createrId"/>  
			    <input class="exui-textbox"  name="dto.apiTestScene.createTime" id="createTime"/>
			    <input class="exui-textbox"  name="dto.apiTestScene.updateTime" id="updateTime"/>  
			    <input class="exui-textbox"  name="dto.apiTestScene.updatorId" id="updatorId"/>  
   			    <input class="exui-textbox"  name="dto.apiTestScene.unexecCnt" id="unexecCnt"/>  
   			    <input class="exui-textbox"  name="dto.apiTestScene.execCnt" id="execCnt"/>  
   			    <input class="exui-textbox"  name="dto.apiTestScene.apiInterfaces" id="apiInterfaces"/> 
   			    <input class="exui-textbox"  name="dto.otherCaseModuleIds" id="otherCaseModuleIds"/>        
			  </td>
			</tr>
			<tr>
				<th style="width:26%"><sup>*</sup>测试场景名称：</th>
	    		<td><input class="exui-textbox" name="dto.apiTestScene.sceneName" id="sceneName" style="width:75%"/></td>
	    	</tr>
	    	<tr>
	    	<th  style="width:25%"><sup>*</sup>执行人：</th>
	    		<td><select id="testSceneExecutor" class="exui-combobox executor"  data-options="
	    			valueField:'id',
	    			textField:'name',
	    			multiple:true,
	    			editable:false,
	    			prompt:'-请选择-'" style="width:75%"></select>	<span class="multPkgPeopleSel" onclick="showSeletctPeopleWindow('executor');" title="选择人员" ></span>
	    		</td>
	    	</tr>
	    	<tr>
	    		<th  style="width:25%">执行环境：</th>
	    		<td>
	    		  <textarea class="exui-textbox" name="dto.apiTestScene.execEnvironment" id="execEnvironment"  style="width:75%"></textarea>
	    		</td>
	    	</tr>
	    	<tr>
	    	   <th style="width:25%"><sup>*</sup>执行版本： </th>
				<td>
					<input id="execVersion" class="exui-combobox" name="dto.apiTestScene.execVersion"  style="width:75%" data-options="
	    			required:false,
	    			validateOnCreate:false,
	    			prompt:'-请选择-'
	    			"/>
				</td>
	    	</tr>
	    	<tr>
	    		<th  style="width:25%"><sup>*</sup>预计开始时间：</th>
	    		<td>
	    		  <input class="exui-datebox" name="dto.apiTestScene.planStartTime" id="planStartTime" style="width:75%" data-options="validateOnCreate:false,prompt:'-请选择-',editable:false"
></input>
	    		</td>
	    	</tr>
	    	<tr>
	    		<th  style="width:25%"><sup>*</sup>预计结束时间：</th>
	    		<td>
	    		  <input class="exui-datebox" name="dto.apiTestScene.planEndTime" id="planEndTime" style="width:75%" data-options="validateOnCreate:false,prompt:'-请选择-',editable:false"
></input>
	    		</td>
	    	</tr>
	    	<tr>
	    		<th  style="width:25%">实际开始时间：</th>
	    		<td>
	    		  <input class="exui-datebox" name="dto.apiTestScene.actualStartTime" id="actualStartTime" style="width:75%" data-options="validateOnCreate:false,prompt:'-请选择-',editable:false"
></input>
	    		</td>
	    	</tr>
	    	<tr>
	    	<th  style="width:35%"><sup>*</sup>出错是否继续执行：</th>
	    		<td>
                   <select id="continued" class="exui-combobox" name="dto.apiTestScene.continued"  style="width:75%">
                     <option value="0">否</option>
                     <option value="1">是</option>
                   </select>
	    		</td>
	    	</tr>
	        <tr id="titleline">
	    	  <td colspan="2">
	    	    <div class="exportScenecaseTitle">分配接口到测试场景<span class="exportScenecaseTips">&nbsp;&nbsp;&nbsp;(可选择任意一种方式)</span></div>
	    	  </td>
	    	</tr>
	    	<tr id="exportOtherScenes">
	    	  <th  style="width:25%">从其他测试场景选择：</th>
	    		<td>
	    		<select id="testScenes" data-options="
		    			valueField:'id',
		    			textField:'name',
		    			multiple:true,
		    			editable:false,
		    			prompt:'-请选择-'" style="width:75%">
	    			</select>
	    		</td>
	    	</tr>
	    	<tr id="exportOtherSceneModule">
	    	  <th  style="width:29%">从接口需求中选择：</th>
	    		<td>
	    		 <span id="sceneModuleNames" style="vertical-align: sub;"></span>    
	    		  <a class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" id="showSceneCaseTreeBtn">点击选择</a>
	    		</td>
	    	</tr>
	    </form>
	</table>
</div>
<div id="addOrEditSceneFooter" align="right" style="padding:5px; ">
	<a class="exui-linkbutton" data-options="btnCls:'primary',size:'xs'" onclick="submitTestScene()">保存</a>
	<a class="exui-linkbutton"  data-options="btnCls:'default',size:'xs'" style=" border: 1px solid #1E7CFB;color: #1E7CFB;" id="closeTestSceneBtn">取消</a>
</div>
<!-- 新增/修改单井模态窗结束 -->
<div id="sceneCaseTreeWin" class="exui-window" style="display:none;" data-options="
	modal:true,
	width: 480,
	height:500,
	top:90,
	minimizable:false,
	maximizable:false,
	closed:true">
	<div class="btnSceneTools">
	   <a class="btn btn-default" onclick="expandOrCollapseAllTree()">展开/折叠</a>
	  <button class="btn btn-default" onclick="confirmModule()">确认</button>
	</div>
   <div>
     	<div id="sceneCaseDetailTree"></div>
   </div>
</div>

<script src="<%=request.getContextPath()%>/itest/js/apiManager/testSceneManager/addOrEditTestScene.js" type="text/javascript" charset="utf-8"></script>